package com.bit.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.bit.mybatisplus.model.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Wrapper;
import java.util.List;

@Mapper
public interface UserInfoMapper extends BaseMapper<Userinfo> {

    @Select("select * from user_info where id = #{id}")
    List<Userinfo> selectList1(Integer id);


    List<Userinfo> selectList2(Integer id);


    @Select("select * from user_info ${ew.customSqlSegment}")
    List<Userinfo> selectList3(@Param(Constants.WRAPPER) QueryWrapper<Userinfo> wrapper);






}
